package com.oritsh.visitsys.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.oritsh.visitsys.dao.UserDao;
import com.oritsh.visitsys.model.User;

@Component
public class UserService {
	private UserDao userDao;

	public UserDao getBookDao() {
		return userDao;
	}

	@Resource
	public void setBookDao(UserDao userDao) {
		this.userDao = userDao;
	}
	
	public void add(User user){
		userDao.add(user);
	}
	public void update(User user){
		userDao.update(user);
	}
}
